package jim.h.commons;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

public class EmsCrawler {

    public static void main(String[] args) throws IOException {
        Document doc = Jsoup.connect("http://www.express8.cn:2010/ems-china.php").timeout(10000).data("wen",
                                                                                                      "EE188719375CN").post();
        // Elements table = doc.select("table > tbody > tr > td[valign=middle][width=96%][height=30]");
        Elements table = doc.select("div.mailnum_result_box > table:eq(1) > tbody > tr");
        System.out.println(table);
        System.out.println("                                        2011-09-01&nbsp;&nbsp;&nbsp;15:47:00                                    ".split("(&nbsp;)+")[0]);
    }
}
